Text strings are limited to 62 characters in iziBasic. But, in some cases, it is needed to access wider chunks of data, especially for database files accesses. For example, you might want to read a complete memo from the memo database, or a DOC record.
It is a common habit to limit records size in databases to 4 Kbytes (4096 bytes). So, iziBasic comes with ONE so called "MegaString", which is 4 Kbytes long and that you can use for these purposes, or also to store any data you wish.
Note: even though you can put some character anywhere in the MegaString (see the PUTCHAR$$ and PUTSTRING$$ statements), the MegaString is considered as a CHR$(0) ended text string (like all other text strings).
Warning: the MegaString is not passed with CHAIN, so, if you need it in the new code segment, you should save its content to a temporary file before chaining and reload it from this file in the new code segment.
Clears the MegaString
Notes:
Retrieves the value stored in a field (NUMFIELD, TEXTFIELD or TEXTFIELD$$) to the MegaString
Notes:
Input of one file record into MegaString (refer to Files)
Notes:
Print the content of MegaString to a file record (refer to Files)
Notes:
Put one character s|t at index v|n of MegaString, v|n is in the range [1...4096]
Put one text string s|t starting at index v|n of MegaString, v|n is in the range [1...4096]
TEXTFIELD$$ #v|n1, v|n2, x, y, w, h
Creates and displays a field to input some text, up to v|n2 characters, with the initial value set to the current content of the MegaString.
Notes:
Returns the length of the MegaString, in other words returns position of the first occurrence of CHR$(0) minus 1.
Notes:
Returns the v|n th character of the MegaString
Returns a v|n2 long text string from the MegaString, starting at position v|n1
Notes: